cpupool: prevent a domain from moving itself
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 23 Apr 2013 09:48:11 +0000 (11:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 23 Apr 2013 09:48:11 +0000 (11:48 +0200)
commitbb812101db5117e07de1b557b355c3855850cc95
tree64956a82913e7ccf27a59ae014e34d3c66ebaeec
parent96ef6e88359910738905ac2e1969dc05d7d7e7dc
cpupool: prevent a domain from moving itself

In the XEN_SYSCTL_CPUPOOL_OP_MOVEDOMAIN operation, the existing check
for domid == 0 should be checking that a domain does not attempt to
modify its own cpupool; fix this by using rcu_lock_remote_domain_by_id.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen/common/cpupool.c